package coffee.tigase.auth;

import javax.security.sasl.Sasl;
import javax.security.sasl.SaslClient;
import javax.security.sasl.SaslException;

public class SaslTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {


		try {
			SaslClient sc = Sasl.createSaslClient(new String[] { "DIGEST-MD5" },

			"11", "xmpp", "java.com", null, null);

			byte[] response = sc.evaluateChallenge(new byte[0]);
			
			System.out.println(response);
			
		} catch (SaslException e) {
			e.printStackTrace();
		}

	}

}
